import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:sp_util/sp_util.dart';

class MinePage extends ConsumerWidget {
  const MinePage({super.key});

  @override
  Widget build(BuildContext context, WidgetRef ref) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('个人信息'),
        centerTitle: true,
      ),
      body: Center(
        child: TextButton(
          onPressed: () {
            SpUtil.clear();
            Navigator.of(context).pop();
          },
          child: const Text('退出登录'),
        ),
      ),
    );
  }
}
